// Widgets/User/UserHeadWidget/UserHeadWidget.js
//获取应用实例
const app = getApp();
const assetsAddress = app.globalData.global.assetsIp + '/' + app.globalData.global.assetsName;
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    user: {
      type: Object,
    },
    gradeList: {
      type: Array,
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    assetsAddress: assetsAddress,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    setUser(){
      console.log('跳转用户')
      wx.navigateTo({
        url: '/pages/Users/UserInfo/UserInfo',
      })
    },
  }
})